﻿#region Usings

using PolyGameEngine.GamePieces.Common;
using PolyGameEngine.Tools;

using FarseerPhysics.Dynamics;

using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;

#endregion

namespace PolyMorph.CustomGamePieces
{
    class Fan: ForceTile
    {
        public Fan(PhysicsGame PhysicsGame, World World, Material Material,
            Texture2D SpriteSheet, Vector2 Position, float Rotation, int saveLineIndex)
            : base(PhysicsGame, World, Material, SpriteSheet, 1, Position, new Vector2(0, -50), Rotation, 5, 1, saveLineIndex, "Fan")
        { }

        public override void Effect()
        {
            //Apply the effect if the game poiece in effect is not steel
            if (!GamePieceInEffect.material.Identifier.Equals("Steel"))
            {
                base.Effect();
            }
        }

    }
}
